类别锁;
If the method annotated with@ Synchronized is static, Lombok automatically creates a class object called$ LOCK and synchronizes the method against that object.
如果用@Synchronized注释的这个方法是静态的,那么Lombok就会创建一个名为$LOCK的类对象,并会针对该对象同步这个方法。
英语网 · 双语娱乐资讯
英语网 · 高考英语
英语网 · 高中英语